package com.jiandian.service;

import com.jiandian.entity.Banner;
import com.jiandian.entity.Dict;
import com.jiandian.page.PageInfo;

import java.util.List;

/**
 * 轮播图片
 *
 * @author Houqi Fu
 * @date 2019/01/24
 */
public interface BannerService {

    Banner add(Banner record);

    Banner update(Banner record);

    Banner findById(Integer id);

    List<Banner> findAll(PageInfo pageInfo);

    int selectCount(PageInfo pageInfo);

    int batchInsert(List<Banner> list);

    List<Banner> batchQueryByIds(List<Integer> ids);

    int delete(Integer id);

    int delete(Banner record);

    int batchDeleteById(List<Integer> ids);

    PageInfo getPage(Banner whereEntity, PageInfo pageInfo);

    String fetchBannerUrls(String bucketName);

    int updateBanner(String url);

    Dict getBannerNew(String bucketName);
}
